home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Professional Soft Collection 1.02
/
Professional Soft Collection 1.02.iso
/
communic
/
bitfax.300
/
disk1
/
7171.em_
/
7171.bin
Wrap
Text File
|
1994-04-19
|
7KB
|
264 lines
INITIAL
{ VT100 Emulation 15MAR89 for V3.5X or V4.0X. Includes }
{ 3270 Keyboard Mapping for IBM7171 Protocol Converter }
{ BITCOM's default F1-F10 keys MUST be changed to Alt-F1 thru Alt-F10 }
z#origin(1)
z#setbuf(1,0)
z#setbuf(3,0)
z#awrap(2)
z#setatt(7)
setcolor(7)
clear
z#setmar(1,@mrow)
z#setins(0)
@MAXROW=25
@Return = '"$0D"' {ENTER}
@CtlRet = '"$0A"' {NEW LINE}
@Home = '"$08"' {HOME CURSOR}
@CtlHome = '"$1B$4F$4D"' {CLEAR SCREEN}
@Bs = '"$1B$4F$44$7F"' {BACK SPACE}
@Del = '"$7F"' {DELETE}
@Ins = '"$1B$4F$6E"' {INSERT TOGGLE}
@CtlEnd = '"$1B$7F"' {ERASE EOF}
@Rtab = '"$09"' {TAB}
@Ltab = '"$1B$09"' {BACK TAB}
@PgUp = '"$1B$37"' {PAGE UP PF7}
@PgDn = '"$1B$38"' {PAGE DOWN PF8}
@UpArr = '"$1B$4F$41"' {UP}
@DnArr = '"$1B$4F$42"' {DOWN}
@LfArr = '"$1B$4F$44"' {LEFT}
@RiArr = '"$1B$4F$43"' {RIGHT}
@Alt-1 = '"$1B$2C"' {PA1}
@Alt-2 = '"$1B$2E"' {PA2}
@Alt-3 = '"$1B$2F"' {PA3}
@F1 = '"$1B$31"' {PF1}
@F2 = '"$1B$32"' {PF2}
@F3 = '"$1B$33"' {PF3}
@F4 = '"$1B$34"' {PF4}
@F5 = '"$1B$35"' {PF5}
@F6 = '"$1B$36"' {PF6}
@F7 = '"$1B$37"' {PF7}
@F8 = '"$1B$38"' {PF8}
@F9 = '"$1B$39"' {PF9}
@F10 = '"$1B$30"' {PF10}
@Sft-F1 = '"$1B$2D"' {PF11}
@Sft-F2 = '"$1B$3D"' {PF12}
@Sft-F3 = '"$1B$71"' {PF13}
@Sft-F4 = '"$1B$40"' {PF14}
@Sft-F5 = '"$1B$23"' {PF15}
@Sft-F6 = '"$1B$24"' {PF16}
@Sft-F7 = '"$1B$25"' {PF17}
@Sft-F8 = '"$1B$5E"' {PF18}
@Sft-F9 = '"$1B$26"' {PF19}
@Sft-F10 = '"$1B$2A"' {PF20}
@Ctl-F1 = '"$1B$6F"' {PF21}
@Ctl-F2 = '"$1B$70"' {PF22}
@Ctl-F3 = '"$1B$5F"' {PF23}
@Ctl-F4 = '"$1B$2B"' {PF24}
END
INBUFFER
0x00 NUL
0x08 BS2
0x0a LF
0x0b LF
0x0c FF
0x1a CAN
0x7f NUL
0x0d CR
END
INBUFFER2
0x00 NUL
0x08 BS2
0x0b LF
0x0c FF
0x1a CAN
0x7f NUL
0x5f 0x20
0x60 0xfe
0x61 0x92
0x62 0x8b
0x63 0x9f
0x64 0x87
0x65 0x91
0x66 0xf8
0x67 0xf1
0x68 0xa5
0x69 0x9e
0x6a 0xd9
0x6b 0xbf
0x6c 0xda
0x6d 0xc0
0x6e 0xc5
0x6f 0xc4
0x70 0xc4
0x71 0xc4
0x72 0xc4
0x73 0xc4
0x74 0xc3
0x75 0xb4
0x76 0xc1
0x77 0xc2
0x78 0xb3
0x79 0xf3
0x7a 0xf2
0x7b 0xe3
0x7c 0xf7
0x7d 0x9c
0x7e 0xfa
END
OUTBUFFER
0x08 0x7f
END
HOSTCODE
[?1h z#setflg(a,5) { 5-89 added }
[?2l { set terminal to VT52 mode, not support }
[?3h @maxrow=44;dos("setmax -ammon -c132 -r44 -mmono");
[?4h { select smooth scroll }
[?5h z#setatt(112)
[?6h z#origin(2);poscur(1,1)
[?7h z#awrap(0)
[?8h { auto repeat mode on }
[?9h { full scrn to print during pnt scrn }
[?18h
[?19h
[?25h cursize(7,8) { 5-89 added }
[1h
[3h
[4h z#setins(1)
[5h z#setatt(112)
[6h z#origin(2);poscur(1,1)
[7h z#awrap(0)
[8h
[9h
[12h @echo(0) { 5-89 added }
[20h z#lfnl(1) { 5-89 added }
[?1l z#setflg(a,4)
[?2l message("Received set VT52 sequence. Use vt100b.emu");
[?3l dos("setmax -ammon -c80 -r25 -mmono");
[?4l { select jump scroll }
[?5l z#setatt(7)
[?6l z#origin(1);poscur(1,1)
[?7l z#awrap(1)
[?8l { auto repeat mode off }
[?9l { scrolling region to print in pnt scrn }
[?18l
[?19l
[?25l cursize(9,9) { 5-89 added }
[?3;6;7l dos("setmax -ammon -c80 -r25 -mmono");z#origin(1);poscur(1,1);z#awrap(1)
[1l
[2l message("Received set VT52 sequence. Use vt100b.emu");
[3l
[4l z#setins(0)
[5l z#setatt(7)
[6l z#origin(1);poscur(1,1)
[7l z#awrap(1)
[8l
[9l
[12l @echo(1) { 5-89 added }
[20l z#lfnl(2)
(A z#setbuf(1,0)
(B z#setbuf(1,1)
(0 z#setbuf(2,1)
)A z#setbuf(3,0)
)B z#setbuf(3,0)
)0 z#setbuf(4,0)
[m z#setatt(7)
[0m z#setatt(7)
[1m z#setatt(14)
[4m z#setatt(1)
[5m z#setatt(128)
[7m z#setatt(112)
[0;1m z#setatt(14)
[0;4m z#setatt(1)
[0;5m z#setatt(128)
[0;7m z#setatt(112)
[0;0r z#setmar(1,24);poscur(1,1)
[\t;\br z#setmar(\\t,\\b);poscur(1,1)
[;r z#setmar(1,@mrow);poscur(1,1)
[r z#setmar(1,@mrow);poscur(1,1)
[;\br z#setmar(1,\\b);poscur(1,1)
[\nA z#curup(\\n,0)
[A z#curup(1,0)
[\nB z#curdn(\\n,0)
[B z#curdn(1,0)
[\nC z#curfwd(\\n)
[C z#curfwd(1)
[\nD z#curbak(\\n)
[D z#curbak(1)
[;\nH poscur(\\n,1)
[\nH poscur(1,\\n)
[\n;H poscur(1,\\n)
[H poscur(1,1)
[;H poscur(1,1)
[\r;\cH poscur(\\c,\\r)
[;\nf poscur(\\n,1)
[\nf poscur(1,\\n)
[\n;f poscur(1,\\n)
[f poscur(1,1)
[;f poscur(1,1)
[\r;\cf poscur(\\c,\\r)
D z#curdn(1,1);
E z#curdn(1,1);poscur(1,@row)
M z#curup(1,1);
7 z#savorg;z#savpos;z#savbuf
8 z#resorg;z#respos;z#resbuf
H z#tabset
[g z#tabclr
[0g z#tabclr
[3g z#tabcla
#3
#4
#5
#6
[K z#clreol
[0K z#clreol
[1K z#clrbol
[2K z#clrlin
[J z#clreos
[0J z#clreos
[1J z#clrbos
[2J clear
[P z#del(1)
[0P z#del(1)
[\nP z#del(\n)
[L z#inslin(1)
[0L z#inslin(1)
[\nL z#inslin(\n)
[M z#dellin(1)
[0M z#dellin(1)
[\nM z#dellin(\n)
[5n "$1b[0n"
[6n "$1b[@row;@colR"
[c "$1b[?1;0c"
[0c "$1b[?1;0c"
Z "$1b[?1;0c"
c z#origin(1);z#setbuf(1,0);z#setbuf(3,0);z#awrap(0);z#setmar(1,@mrow);
#8
[2;1y
[2;2y
[2;4y
[2;9y
[2;10y
[2;12y
[2;16y
[2;24y
[s z#savpos
[u z#Resorg
[y
[0q
[q
[1q
[2q
[3q
[4q
= z#setflg(a,5) { application mode }
> z#setflg(a,4) { numeric mode }
<
{< z#setbuf(2,1) 3-89 added }
$5C z#setbuf(1,1) { ESC \ }
[5i printer(1) { 3-89 added }
[?5i printer(1) { 3-89 added }
[4i printer(0) { 3-89 added }
[?4i printer(0) { 3-89 added }
END